﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Prueba.Model
{
    public class HeaderModel:ModelBase
    {
        public double HeaderHeight
        {           
            get { return _HeaderHeight; }
            set
            {
                if (_HeaderHeight != value)
                {
                    _HeaderHeight = value;
                    OnPropertyChanged(HeaderHeightPropertyName);
                }
            }
        }
        private double _HeaderHeight;
        public const string HeaderHeightPropertyName = "HeaderHeight";

        public double HeaderWidth
        {
            get { return _HeaderWidth; }
            set
            {
                if (_HeaderWidth != value)
                {
                    _HeaderWidth = value;
                    OnPropertyChanged(HeaderWidthPropertyName);
                }
            }
        }
        private double _HeaderWidth;
        public const string HeaderWidthPropertyName = "HeaderWidth";

        public double TotalHeaderWidth
        {
            get { return _TotalHeaderWidth; }
            set
            {
                if (_TotalHeaderWidth != value)
                {
                    _TotalHeaderWidth = value;
                    OnPropertyChanged(TotalHeaderWidthPropertyName);
                }
            }
        }
        private double _TotalHeaderWidth;
        public const string TotalHeaderWidthPropertyName = "TotalHeaderWidth";

        public double TotalHeaderHeight
        {
            get { return _TotalHeaderHeight; }
            set
            {
                if (_TotalHeaderHeight != value)
                {
                    _TotalHeaderHeight = value;
                    OnPropertyChanged(TotalHeaderHeightPropertyName);
                }
            }
        }
        private double _TotalHeaderHeight;
        public const string TotalHeaderHeightPropertyName = "TotalHeaderHeight";

        public double PosHeaderWidth
        {
            get { return _PosHeaderWidth; }
            set
            {
                if (_PosHeaderWidth != value)
                {
                    _PosHeaderWidth = value;
                    OnPropertyChanged(PosHeaderWidthPropertyName);
                }
            }
        }
        private double _PosHeaderWidth;
        public const string PosHeaderWidthPropertyName = "PosHeaderWidth";

        public double MergeHeaderHeight
        {
            get 
            {
                return this._HeaderHeight * 2;
            }
            //set
            //{
            //    if (_MergeHeaderHeight != value)
            //    {
            //        _MergeHeaderHeight = value;
            //        OnPropertyChanged(MergeHeaderHeightPropertyName);
            //    }
            //}
        }
        //private double _MergeHeaderHeight;
        //public const string MergeHeaderHeightPropertyName = "MergeHeaderHeight";
    }
}
